<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<input type="text"/>
		<script type="text/javascript">
			var puts=document.getElementsByTagName("input")[0];
			puts.oninput=function(){
				rs();
			}
			
			function putttt(){
				var timer;
				return function(){
					if(timer){clearTimeout(timer)}
					timer=setTimeout(function(){
						console.log(puts.value);
					},1000)
				}
				
			}
			
			var rs=putttt();
		</script>
	</body>
	
</html>
